"""
枚举类型定义
包含任务状态、任务类型等枚举
"""
import enum

class TaskStatus(enum.Enum):
    """任务状态枚举"""
    PENDING = "pending"      # 等待中
    RUNNING = "running"      # 运行中
    SUCCESS = "success"      # 成功
    FAILED = "failed"        # 失败
    DISABLED = "disabled"    # 已禁用
    CANCELLED = "cancelled"  # 已取消


class TaskType(enum.Enum):
    """任务类型枚举"""
    PYTHON_SCRIPT = "python_script"    # Python脚本
    HTTP_REQUEST = "http_request"      # HTTP请求
    SQL_QUERY = "sql_query"            # SQL查询